package com.zh.familyInfo.service.impl;

import com.zh.common.utils.StringUtil;
import com.zh.familyInfo.dao.IllDao;
import com.zh.familyInfo.domain.IllDO;
import com.zh.familyInfo.service.IllService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class IllServiceImpl implements IllService {
	@Autowired
	private IllDao illDao;
	
	@Override
	public IllDO get(String id){
		return illDao.get(id);
	}


	@Override
	public List<IllDO> list(Map<String, Object> map){
		return illDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return illDao.count(map);
	}
	
	@Override
	public int save(IllDO ill){
		ill.setId(StringUtil.generalKeyword());
		return illDao.save(ill);
	}
	
	@Override
	public int update(IllDO ill){
		return illDao.update(ill);
	}
	
	@Override
	public int remove(String id){
		return illDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return illDao.batchRemove(ids);
	}
	
}
